package com.woniuxy.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ...
 * @since 2024年05月22日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_info")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "order_num", type = IdType.AUTO)
    private String orderNum;

    /**
     * 商品ID
     */
    @TableField("goods_id")
    private Integer goodsId;

    /**
     * ID
     */
    @TableField("item_id")
    private Integer itemId;

    /**
     * 用户Id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 门店ID
     */
    @TableField("shop_id")
    private Integer shopId;

    /**
     * 订单金额
     */
    @TableField("order_money")
    private BigDecimal orderMoney;

    /**
     * 订单详情
     */
    @TableField("order_details")
    private String orderDetails;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    private LocalDateTime payTime;

    /**
     * 订单状态
     */
    @TableField("order_state")
    private Integer orderState;

    /**
     * 积分抵扣金额
     */
    @TableField("discount_time")
    private BigDecimal discountTime;

    /**
     * 实付金额
     */
    @TableField("actual_money")
    private BigDecimal actualMoney;


}
